home *** CD-ROM | disk | FTP | other *** search
- unit Unit3;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, Iabuttns, StdCtrls, Iaconn, Iadialgs;
-
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Button1: TButton;
- Edit2: TEdit;
- Button2: TButton;
- IASaveDialog1: TIASaveDialog;
- IAOpenDialog1: TIAOpenDialog;
- IASource1: TIASource;
- Label1: TLabel;
- Label2: TLabel;
- IASRButton1: TIASRButton;
- Button3: TButton;
- IASRButton2: TIASRButton;
- procedure FormCreate(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- procedure Button3Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- IASource1.FileName := ExtractFilePath( Application.ExeName) + IASource1.FileName;
- IASource1.UpdateControls;
- end;
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- If IAOpenDialog1.Execute then
- Edit1. Text:=IAOpenDialog1.FileName;
- end;
-
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- If IASaveDialog1.Execute then
- Edit2.Text:=IASaveDialog1.FileName;
- end;
-
- procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- IASource1.UpdateFile;
- end;
-
- procedure TForm1.Button3Click(Sender: TObject);
- begin
- IASaveDialog1.HistoryList.Clear;
- IAOpenDialog1.HistoryList.Clear;
- end;
-
- end.
-